package com.foreknow.service;

import com.foreknow.entity.Rule;

import java.util.List;

public interface RuleService {
    /**
     * 查询排班规则
     * @param deptCategoryId
     * @param deptId
     * @param registLeId
     * @param pageNum
     * @param pageSize
     * @return
     */
    public List<Rule> getRule(Integer deptCategoryId, Integer deptId, Integer registLeId, Integer pageNum, Integer pageSize);

    /**
     * 新增排班规则
     * @param list
     * @return
     */
    public int addRule(List<Rule> list);

    /**
     * 修改排班规则
     * @param ruleName
     * @param deptID
     * @param userID
     * @param week
     * @param id
     * @return
     */
    public int updateRule(String ruleName,Integer deptID,Integer userID,String week,Integer id);

    /**
     * 删除排班规则
     * @param ruleId
     * @return
     */
    public int deleteRule(Integer ruleId);
}
